home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7030 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: mail2news.demon.co.uk!ozzy.demon.co.uk
  2. From: Brian Skreeg <oz@ozzy.demon.co.uk>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Timing stuff
  5. Date: Fri, 5 Apr 96 22:29:27 GMT
  6. Organization: Fish Technologies Ltd.
  7. Message-ID: <9604052229.AA003y2@ozzy.demon.co.uk>
  8. References: <9604012043.AA003vp@ozzy.demon.co.uk> <4jsinv$9mi@senator-bedfellow.MIT.EDU> <1996Apr4.123716.19422@imada.ou.dk>
  9. X-NNTP-Posting-Host: ozzy.demon.co.uk
  10. X-Newsreader: TIN [version 1.2 PL3]
  11. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!ozzy.demon.co.uk
  12.  
  13. While smelling of fish Bjorn Reese (breese@imada.ou.dk) wrote:
  14.  
  15. : You may reconsider asking for ops at a certain interval as it's
  16. : really annoying if there's huge lag (the bot gets ops but doesn't
  17. : discover it until several minutes later and floods the channel with
  18. : op requests.) I'd rather suggest that it asks if it receives a
  19. : ERR_CHANOPRIVSNEEDED.
  20.  
  21. Cheers mate, very helpful.
  22.  
  23. Unfortunatly, I've noticed a strange characteristic in the way I've done
  24. this bot. I've used fopen(ircfp,"tcp:irc.demon.co.uk/6667","a+") to open
  25. the connection to irc. I'm also using fgets() to read a line of this file
  26. when the server dumps something in it. Then I parse it and so on.
  27.     Thing is, when I call fgets() and there is no new msg's waiting for my
  28. bot, fgets() doesn't return an error or anything. It just sits refusing to
  29. return until the server chucks something at it. Very strange.
  30.     This the versh 2 of my bot and versh 1 never did this . Can't remember
  31. how I did it before either and I lost all source in a nasty HD error. :(
  32.  
  33.    __ _ _                
  34.   /  \ \ \ 
  35.  / / / / / |-Brian Skreeg--------IRC:_Ozzy-|
  36.  \__/  \ \ |-Fish Technologies Ltd---------|
  37.     \__/_/ |-Evolving software specialists-|
  38.